<template>
    <div>
        <div v-if="flag" class="show">
            <dv-loading>Loading...</dv-loading>
        </div>
        <ul>
            <li v-for="item  in list" :key="item.id">{{item.id}}---{{item.cont}}</li>
        </ul>
    </div>
</template>

<script>
// import {getAllPro} from '@/api/request'
export default {
    data() {
        return {
            list:[],
            flag:true
        }
    },
    created() {
        // this.$axios.get(`http://localhost:3000/${this.$route.params.type}`).then(res=>{
        //     let {data} = res
        //     // console.log(data.data);
        //     this.list = data
        //     this.flag = false
        // })
    },
}
</script>

<style lang="scss" scoped>
    .show{
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
    }
</style>